package cn.yunhe.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private BigDecimal id;
	private Users users;
	private Date orderdate;
	private BigDecimal totalprice;
	private Set<Orderbook> orderbooks = new HashSet<Orderbook>(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Users users, Date orderdate, BigDecimal totalprice) {
		this.users = users;
		this.orderdate = orderdate;
		this.totalprice = totalprice;
	}

	/** full constructor */
	public Orders(Users users, Date orderdate, BigDecimal totalprice,
			Set<Orderbook> orderbooks) {
		this.users = users;
		this.orderdate = orderdate;
		this.totalprice = totalprice;
		this.orderbooks = orderbooks;
	}

	// Property accessors

	public BigDecimal getId() {
		return this.id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Date getOrderdate() {
		return this.orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}

	public BigDecimal getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(BigDecimal totalprice) {
		this.totalprice = totalprice;
	}

	public Set<Orderbook> getOrderbooks() {
		return this.orderbooks;
	}

	public void setOrderbooks(Set<Orderbook> orderbooks) {
		this.orderbooks = orderbooks;
	}

}